package com.weixing.mall.provider.model.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.weixing.mall.core.support.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 代理商模块-代理商晋升记录表
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("amc_agent_promote")
public class AgentPromote extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 代理商编号ID
     */
    private Long agentId;

    /**
     * 晋升前等级
     */
    private Integer levelBefore;

    /**
     * 晋升后等级
     */
    private Integer levelAfter;

    /**
     * 原上级
     */
    private Long parentBefore;

    /**
     * 晋升后上级
     */
    private Long parentAfter;

    /**
     * 变动类型 1晋级；2降级
     */
    private Integer promoteType;

    /**
     * 是否主动晋升 0被动；1主动
     */
    private Integer isInitiative;

    /**
     * 变动范围 1个人；2团队
     */
    private Integer chgScope;

    /**
     * 备注
     */
    private String remark;

    /**
     * 关联id 记录被动晋升的触发条件
     */
    private Long relationId;

    /**
     * 乐观锁
     */
    private Integer revision;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 更新时间
     */
    private Date updatedTime;


}
